<style>
#bk { border:2px solid  black;}   
</style>
<div id="bk">
<form id="searchdefine" action="" >
	 接口:<font color="green">com.greenline.push.services.PushCenterCommonService.getBizDefine(String templateCode)</font>
	 <hr>
	 描述:<font color="green">获取服务定义接口</font>
	 <hr>
选择环境:
	<select name="url" id="url">
		<option value="">请选择环境</option>
		<option value="dubbo://192.168.1.105:20890/">测试环境105</option>
		<option value="dubbo://10.10.120.157:20890/">预发环境157</option>
		<option value="dubbo://10.10.10.8:20890/">生产环境10.8</option>
		<option value="dubbo://localhost:20890/">本地环境</option>
		<option value="dubbo://192.168.7.179:20890/">左帅</option>
	</select>
模版code:
	<input type="text" name="code" value="${code}"/> 
	<input type="button" value="查询" id="definesubmit"/>
	 <br><br><br>
	 <div id="defineresult"></div>
</form>
</div>
<br/><br/><br/>




<div id="bk">
<form id="sends2sTest" action="" >
	 接口:<font color="green">com.greenline.push.services.PushCenterCommonService.send(Long receiverUserId, String templateCode, String domainCode, Map<String, String> param)</font>
	 <hr>
	 描述:<font color="green">点对点推送接口</font>
	 <hr>
	<table class="l-table-edit" >
	 <tr>
<td>选择环境:</td>
	<td><select name="url" id="url">
		<option value="">请选择环境</option>
		<option value="dubbo://192.168.1.105:20890/">测试环境105</option>
		<option value="dubbo://10.10.120.157:20890/">预发环境157</option>
		<option value="dubbo://10.10.10.8:20890/">生产环境10.8</option>
		<option value="dubbo://localhost:20890/">本地环境</option>
		<option value="dubbo://192.168.7.179:20890/">左帅</option>
	</select>
   </td>
  <td>接受人id</td>
  <td><input type="text" name="receiverUserId" /></td>
 <tr>

<td>模版code:</td>
	<td><input type="text" name="templateCode" /> </td>
<td>域code:</td>
	<td><input type="text" name="domainCode"  /> </td>
</tr>
 <tr>
	 <td>参数map</td>
	 <td><textarea rows="3" cols="60" name="param" id="param" placeholder="[a=1@@@b=2] 类似这样的格式"></textarea></td>
</tr>
</table>
	<input type="button" value="调用" id="s2ssubmit"/>
	 <br><br><br>
	 <div id="sends2sresult"></div>
</form>
</div>
<br/><br/><br/>


<div id="bk">
<form id="sendgroupTest" action="" >
	 接口:<font color="green">com.greenline.push.services.PushCenterCommonService.sendGroup(Long gid, String templateCode, String domainCode, Map<String, String> param)</font>
	 <hr>
	 描述:<font color="green">群组推送接口</font>
	 <hr>
	<table class="l-table-edit" >
	 <tr>
<td>选择环境:</td>
	<td><select name="url" id="url">
		<option value="">请选择环境</option>
		<option value="dubbo://192.168.1.105:20890/">测试环境105</option>
		<option value="dubbo://10.10.120.157:20890/">预发环境157</option>
		<option value="dubbo://10.10.10.8:20890/">生产环境10.8</option>
		<option value="dubbo://localhost:20890/">本地环境</option>
		<option value="dubbo://192.168.7.179:20890/">左帅</option>
	</select>
   </td>
  <td>群id</td>
  <td><input type="text" name="gid" /></td>
 <tr>

<td>模版code:</td>
	<td><input type="text" name="templateCode" /> </td>
<td>域code:</td>
	<td><input type="text" name="domainCode"  /> </td>
</tr>
 <tr>
	 <td>参数map</td>
	 <td><textarea rows="3" cols="60" name="param" id="param" placeholder="[a=1@@@b=2] 类似这样的格式"></textarea></td>
</tr>
</table>
	<input type="button" value="调用" id="sendgroupsubmit"/>
	 <br><br><br>
	 <div id="send-group-result"></div>
</form>
</div>
<br/><br/><br/>


<div id="bk">
<form id="senddomainTest" action="" >
	 接口:<font color="green">com.greenline.push.services.PushCenterCommonService.sendDomain(String templateCode, String domainCode, Map<String, String> param)</font>
	 <hr>
	 描述:<font color="green">域推送接口</font>
	 <hr>
	<table class="l-table-edit" >
	 <tr>
<td>选择环境:</td>
	<td><select name="url" id="url">
		<option value="">请选择环境</option>
		<option value="dubbo://192.168.1.105:20890/">测试环境105</option>
		<option value="dubbo://10.10.120.157:20890/">预发环境157</option>
		<option value="dubbo://10.10.10.8:20890/">生产环境10.8</option>
		<option value="dubbo://localhost:20890/">本地环境</option>
		<option value="dubbo://192.168.7.179:20890/">左帅</option>
	</select>
   </td>
 <tr>

<td>模版code:</td>
	<td><input type="text" name="templateCode" /> </td>
<td>域code:</td>
	<td><input type="text" name="domainCode"  /> </td>
</tr>
 <tr>
	 <td>参数map</td>
	 <td><textarea rows="3" cols="60" name="param" id="param" placeholder="[a=1@@@b=2] 类似这样的格式"></textarea></td>
</tr>
</table>
	<input type="button" value="调用" id="senddomainsubmit"/>
	 <br><br><br>
	 <div id="senddomainResult"></div>
</form>
</div>
<br/><br/><br/>


<!--广波消息-->
<div id="bk">
<form id="createbroadcastTest" action="" >
	 接口:<font color="green">createBroadCast(String classCode, String templateCode, String domainCode, Map<String, String> param)</font>
	 <hr>
	 描述:<font color="green">广播推送接口</font>
	 <hr>
	<table class="l-table-edit" >
	 <tr>
<td>选择环境:</td>
	<td><select name="url" id="url">
		<option value="">请选择环境</option>
		<option value="dubbo://192.168.1.105:20890/">测试环境105</option>
		<option value="dubbo://10.10.120.157:20890/">预发环境157</option>
		<option value="dubbo://10.10.10.8:20890/">生产环境10.8</option>
		<option value="dubbo://localhost:20890/">本地环境</option>
		<option value="dubbo://192.168.7.179:20890/">左帅</option>
	</select>
   </td>
   <td>组</td>
   <td>
   	<input type="text" name="classCode" /> 
   </td>
 <tr>

<td>模版code:</td>
	<td><input type="text" name="templateCode" /> </td>
<td>域code:</td>
	<td><input type="text" name="domainCode"  /> </td>
</tr>
 <tr>
	 <td>参数map</td>
	 <td><textarea rows="3" cols="60" name="param" id="param" placeholder="[a=1@@@b=2] 类似这样的格式"></textarea></td>
</tr>
</table>
	<input type="button" value="调用" id="cratebroadcastsubmit"/>
	 <br><br><br>
	 <div id="broadCastResult"></div>
</form>
</div>


<script type="text/javascript">

//senddomainTest
$("#senddomainsubmit").click(function(){
	$.ajax({
                cache: true,
                type: "POST",
                url:"/test/senddomain",
                data:$('#senddomainTest').serialize(),
                async: false,
                contentType: "application/x-www-form-urlencoded; charset=utf-8",  
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                $("#senddomainResult").html(data);
                }
            });
});


//getbizDefine	
$("#definesubmit").click(function(){
	$.ajax({
                cache: true,
                type: "POST",
                url:"/test/getdefine",
                data:$('#searchdefine').serialize(),
                async: false,
                contentType: "application/x-www-form-urlencoded; charset=utf-8",  
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                $("#defineresult").html(data);
                }
            });
});

//send	s2s
$("#s2ssubmit").click(function(){
	$.ajax({
                cache: true,
                type: "POST",
                url:"/test/sends2s",
                data:$('#sends2sTest').serialize(),
                async: false,
                contentType: "application/x-www-form-urlencoded; charset=utf-8",  
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                	$("#sends2sresult").html(data);
                }
            });
});


//sendgroup
$("#sendgroupsubmit").click(function(){
	$.ajax({
                cache: true,
                type: "POST",
                url:"/test/sendgroup",
                data:$('#sendgroupTest').serialize(),
                async: false,
                contentType: "application/x-www-form-urlencoded; charset=utf-8",  
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                	$("#send-group-result").html(data);
                }
            });
});


//create broadcast
$("#cratebroadcastsubmit").click(function(){
	$.ajax({
                cache: true,
                type: "POST",
                url:"/test/createbroadcast",
                data:$('#createbroadcastTest').serialize(),
                async: false,
                contentType: "application/x-www-form-urlencoded; charset=utf-8",  
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                	$("#broadCastResult").html(data);
                }
            });
});
</script>

                  
